package cn.mldn.microboot.controller;

import cn.mldn.microboot.service.IDeptService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * description:
 * Created by gy on 2017/8/21.
 */
@RestController
public class DeptController {

    @Resource
    private IDeptService deptService;

    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public Object list(){
        return this.deptService.list();
    }
}
